echo "=== If/Else 综合测试 ==="

echo "测试1: then分支"
let x = 10
if x > 5
  echo "x > 5: true"
else
  echo "x > 5: false"
endif

echo "测试2: else分支"  
let y = 3
if y > 5
  echo "y > 5: true"
else
  echo "y > 5: false"
endif

echo "测试3: 数字0的真值测试"
let zero = 0
if zero
  echo "0 is truthy"
else
  echo "0 is falsy"
endif

echo "测试4: 数字1的真值测试"
let one = 1
if one
  echo "1 is truthy"
else
  echo "1 is falsy"
endif

echo "=== 测试完成 ==="